<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

{% for i in books %}
    {{ i.name }}:价格{{ i.price }}<br>
{% endfor %}

<div>
    {% if pagination.prev_num %}
        <a href="{{ url_for('search.search_view',page=pagination.prev_num) }}">上一页</a>
    {% endif %}

    {% for i in range_page %}
        <a href="{{ url_for('search.search_view',page=i) }}">{{ i }}</a>
    {% endfor %}

    {% if pagination.next_num %}
        <a href="{{ url_for('search.search_view',page=pagination.next_num) }}">下一页</a>
    {% endif %}



</div>


</body>
</html>